#!/usr/bin/python
import requests
from proxy.Manager.ProxyManager import ProxyManager

def proxyip():
    url = "http://www.whatismyip.com.tw/"
    proxy = ProxyManager().get();
    print(proxy)
    proxies = {"https": "https://{proxy}".format(proxy=proxy)}
    res = requests.get(url, proxies=proxies, timeout=30)
    print(res)
    print("-----------------------")

if __name__ == '__main__':
    proxyip()